from safe.encryt_and_decryt import decryt_cbc, encryt_cbc
from settings_json import my_settings_json
import json

my_key = "i love nian nian"
st_json_str = str(my_settings_json)
encryt_json_str = encryt_cbc(key=my_key, st=st_json_str)

encryt_json = {"data":encryt_json_str}
print(encryt_json)

with open('easygeo_settings.json', 'w') as f:
    json.dump(encryt_json, f)
    print('写入完成')
